/*    */ package com.openbravo.pos.forms;
/*    */ 
/*    */ import java.util.ArrayList;
/*    */ import javax.swing.Action;
/*    */ 
/*    */ public class MenuDefinition
/*    */ {
/*    */   private String m_sKey;
/*    */   private ArrayList m_aMenuElements;
/*    */ 
/*    */   public MenuDefinition(String skey)
/*    */   {
/* 37 */     this.m_sKey = skey;
/* 38 */     this.m_aMenuElements = new ArrayList();
/*    */   }
/*    */ 
/*    */   public String getKey() {
/* 42 */     return this.m_sKey;
/*    */   }
/*    */ 
/*    */   public String getTitle() {
/* 46 */     return AppLocal.getIntString(this.m_sKey);
/*    */   }
/*    */ 
/*    */   public void addMenuItem(Action act) {
/* 50 */     MenuItemDefinition menuitem = new MenuItemDefinition(act);
/* 51 */     this.m_aMenuElements.add(menuitem);
/*    */   }
/*    */ 
/*    */   public void addMenuTitle(String keytext) {
/* 55 */     MenuTitleDefinition menutitle = new MenuTitleDefinition();
/* 56 */     menutitle.KeyText = keytext;
/* 57 */     this.m_aMenuElements.add(menutitle);
/*    */   }
/*    */ 
/*    */   public MenuElement getMenuElement(int i) {
/* 61 */     return (MenuElement)this.m_aMenuElements.get(i);
/*    */   }
/*    */   public int countMenuElements() {
/* 64 */     return this.m_aMenuElements.size();
/*    */   }
/*    */ }

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.forms.MenuDefinition
 * JD-Core Version:    0.6.0
 */